package com.cyd.order_service.fallback;

import com.cyd.order_service.service.ProductFeignClient;
import org.springframework.stereotype.Component;

/**
 * 针对商品服务做降级处理
 */
@Component
public class ProductFeignClientFallBack implements ProductFeignClient {

    @Override
    public String findById(int id) {
        System.out.println("feign调用product-service findById 失败");

        //发邮件或者短信通知对应人员
        return null;
    }
}
